<template>
  <div>
    <table v-for="i in list" :key="i">
      <tr>
        <td>{{ i.name }}</td>
        <td>
          <router-link :to="{name:'datasource',query: {'id': i.id}}"> 参数配置</router-link>
          <router-link :to="{name:'qjia',query: {'id': i.id}}"> 请假申请</router-link>
        </td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  name: "workflow",
  data() {
    return {
      list: [],
      id:''
    }
  },
  methods: {
    get_list() {
      this.myaxios('http://localhost:5000/workflow', 'get').then(res => {
        console.log(res)
        this.list = res.data.list
      })
    }
  },
  mounted() {
    this.get_list()
  }
}
</script>

<style scoped>

</style>